/**
 *          Created by luyon on 17/4/18.
 *
 *                  时间戳转时间
 */

"use strict";

export function getLocalTime(dataTime) {
    let date= new Date() ;
    date.setTime(dataTime) ;
    let year = date.getFullYear() ;
    let mon = date.getMonth() ;
    let day = date.getDate() ;
    let formatTime = year+"-"+(mon+1)+"-"+day ;
    return formatTime ;

}
// console.log(getLocalTime(1492505825000)) ;
// console.log(getLocalTime(1440604800000)) ;
